package org.isifaces.component.tooltips;

import javax.faces.component.UIOutput;
import org.isifaces.component.IsiComponentCoreUtils;

public class Tooltips extends UIOutput implements org.primefaces.component.api.Widget {

	public static final String COMPONENT_TYPE = "org.isifaces.component.Tooltips";
	public static final String DEFAULT_RENDERER = "org.isifaces.component.TooltipsRenderer";

	protected enum PropertyKeys {
		styleClass("styleClass");

		String toString;

		PropertyKeys(String toString) {
			this.toString = toString;
		}

		PropertyKeys() {}

		public String toString() {
			return ((this.toString != null) ? this.toString : super.toString());
		}
	}

	/**
	 * Constructeur par defaut
	 */
	public Tooltips() {
		setRendererType(DEFAULT_RENDERER);
	}

	/**
	 * Recuperation de la famille du composant
	 */
	public String getFamily() {
		return IsiComponentCoreUtils.COMPONENT_FAMILY;
	}

	public String getStyleClass() {
		return (String) getStateHelper().eval(PropertyKeys.styleClass, null);
	}

	@Override
	public String resolveWidgetVar() {
		return null;
	}
}
